<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Thongke extends MY_Controller {

	public $data 	= 	array();
 	public $_template = array();
	public function __construct() {
		//parent::Controller();
		parent::__construct(); //for CI 2.x users 
		$this->load->module_model('member', 'qlsv_model', 'thongke');
		$this->load->module_language('member', 'qlsv');
		$this->load->helper('text');
		$this->user = $this->access->get_user();
		$this->load->helper('url');
		$this->access->restrict();
	}
 
	public function index() 
	{
	
		$data['ItemID'] = 'User';
		$data['title'] = 'Thống kê hệ thống';
		$data['description'] = 'Thống kê hệ thống';
		
		$this->access->restrict();
		$this->load->library('basic_library');
		$this->load->library('pagination');
		$data['alluser'] = $this->thongke->count_all_user();
		$data['alllop'] = $this->thongke->count_all_lop();
		$data['allhocphi'] = $this->thongke->count_all_hocphi();
		$data['allbodoi'] = $this->thongke->count_all_bodoi();
		$data['allhocvien'] = $this->thongke->count_all_hocvien();
		$data['lops'] = $this->thongke->get_tenlop();
	
		$this->_template['page']	= 'users/thongke';
		$this->system_library->load($this->_template['page'], $data);
	}
	
	
	
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/products.php */